package org.chen.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.chen.entity.Model;
import org.chen.query.ModelQueryParams;
import org.chen.request.ModelRequest;
import org.chen.request.ModelUpdateRequest;

import java.util.Optional;

public interface ModelService extends IService<Model> {

    Page<Model> queryModels(ModelQueryParams queryParams);

    Model saveModel(ModelRequest modelRequest);

    Long CountCommon(ModelQueryParams queryParams);

    Model updateModel(ModelUpdateRequest modelUpdateRequest);

    boolean deleteById(Long id);
}
